@layout("/common/_container.html",{js:["/assets/nanSellAnnounce/nanSellAnnounce.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">社区管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <select id="checkStatus">
                                    <option value="">审核状态</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <input id="name" class="layui-input" type="text" placeholder="标题"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                            </div>
                            @if(shiro.hasPermission("/nanSellAnnounce/addItem")){
                            <div class="layui-inline">
                                <button id="btnAddOfficial" class="layui-btn layui-btn-normal icon-btn"><i class="layui-icon">&#xe654;</i>发布官方帖子</button>
                            </div>
                            @}
                        </div>
                    </div>
                    <table class="layui-table" id="nanSellAnnounceTable" lay-filter="nanSellAnnounceTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{# if(d.checkStatus == 0 && !d.isDel){ }}
    @if(shiro.hasPermission("/nanSellAnnounce/editItem")){
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="edit">审核</a>
    @}
    {{# } }}
    {{# if(!d.isDel){ }}
    @if(shiro.hasPermission("/nanSellAnnounce/delete")){
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}
    {{# } }}
    @if(shiro.hasPermission("/nanSellAnnounce/editItem")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="sort">排序</a>
    @}
    @if(shiro.hasPermission("/nanSellAnnounce/editItem")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="look">查看评论</a>
    @}
    @if(shiro.hasPermission("/nanSellAnnounce/editItem")){
    <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="advert">广告</a>
    @}
</script>
@}
